var mysql = require("mysql");

var _pool = mysql.createPool({
	connectionLimit: 3,
	host: "aliyun327.kuick.cn",
	port: 53306,
	user: "root",
	password: "Dwed123xxxDxx23@#",
	database: "cc-deal-test"
})

var poolCon = {
	acquire: function(next){
		_pool.getConnection(next);
	},
	release: function(connection){
		connection && connection.release();
	},
	destroyAllNow: function(next){
		next = next || function(){};
		_pool.end(next);
	}
}

var appId = "e0789b25-5adc-4118-ab3a-8a3f26717425";
var kuickUserId = "9106";
var fileId = "3522";

var sql = "delete from app_file_share where appId = ? and kuickUserId = ? and fileId = ?";
var args = [appId, kuickUserId, fileId];
		
poolCon.acquire(function(err, client){
	client.query(sql, args, function(err, result){
		poolCon.release(client);
		console.log(result);
	});
});






























